package com.wind.taobao.api.jianghu.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;

	/**
	 * taobao.jianghu.coins.consume Request
	 * @author fxy
	 *
	 */
	public class JianghuCoinsConsumeRequest extends TaobaoJianghuRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.jianghu.coins.consume"
		}

		/**
		 * Y 	 兑换淘金币数
		 */
		[Bindable]
		public var coin_count:int;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([coin_count]))
			{
				throw new InvalidRequestParametersException("请求参数[coin_count]不能为空");
			}
		}
	}
}